package cn.liumouren.tool.security.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Daniel Liu
 * @date 2021/3/5 15:07
 */
@ConfigurationProperties("dl.security")
public class SecurityProperties {
    private boolean enable = true;
    private boolean openApiMeasure = true;
    private String tokenHeader = "token";
    private String prefix = "";

    public boolean isOpenApiMeasure() {
        return openApiMeasure;
    }

    public void setOpenApiMeasure(boolean openApiMeasure) {
        this.openApiMeasure = openApiMeasure;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getTokenHeader() {
        return tokenHeader;
    }

    public void setTokenHeader(String tokenHeader) {
        this.tokenHeader = tokenHeader;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }
}
